#ifndef _CONVERT_To_SAIL_
#define _CONVERT_To_SAIL_

#include "output_sail.h"
#include "stdafx.h"

// CConvToRGB: Base class for image operations
class CConvToRGB
{
public:

    CConvToRGB();

    HRESULT SetFormat(const VIDEOINFOHEADER& vih);
    HRESULT SetImage(BYTE *pBuffer);
    HRESULT ConvertImage();
	int SendToBmp(void);
	int SendToSage(void);

protected:

//	SVC_output_sail m_sail;

    DWORD NumPixels() { return m_dwHeight * m_dwWidth; }

    BYTE*   m_pImg;
    DWORD   m_dwWidth;
    DWORD   m_dwHeight;
    LONG    m_lStride;
    int     m_iBitDepth;
	unsigned char* m_pbRGB_buff;


	DWORD m_bufLen;
};

#endif
